package com.tang.service.logic.impl;

import com.tang.entity.CarInfo;
import com.tang.service.logic.BaseLogic;

import java.util.Arrays;

/**
 * 是否特殊车辆筛选
 * 
 * @author Tang
 */
public class CarSpecialFilter extends BaseLogic {

    final String[] specialColor = {"white", "black"};

    @Override
    public Boolean matterValue(Long treeId, String userId, CarInfo carInfo) {
        String licenseColor = carInfo.getLicenseCollor();
        return Arrays.asList(specialColor).contains(licenseColor);
    }

}
